{extend name="layout/common_layout" /}
{block name="body"}
    <!--tab标签-->
<div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">会员管理</li>
            <li class=""><a href="{:url('admin/systemparameter/memberpage')}">添加会员</a></li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <hr>

                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 30px;">ID</th>
                        <th>会员图</th>
                        <th>会员名称</th>
                        <th>价格</th>
                        <th>使用时间（单位：天）</th>
                        <th>置顶次数</th>
                        <th>注解</th>
                        <th>状态</th>
                        <th>创建时间</th>
                        <th>修改时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="list" item="vo"}
                    <tr>
                        <td>{$vo.ms_id}</td>
                        <td><img src="{$vo.ms_photo}" alt="" style="width: 50px; height: 50px;"></td>
                        <td>{$vo.ms_name}</td>
                        <td>{$vo.ms_price}</td>
                        <td>{$vo.ms_days}</td>
                        <td>{$vo.ms_roof}</td>
                        <td>{$vo.ms_content}</td>
                        <td>{php}echo $vo['ms_status'] == 1 ? '启用': '禁用';{/php}</td>
                        <td>{$vo.ms_create_time|date="Y-m-d H:i:s",###}</td>
                        <td>{$vo.ms_update_time|date="Y-m-d H:i:s",###}</td>
                        <td>
                            <a href="{:url('admin/systemparameter/detail',['id'=>$vo['ms_id']])}" class="layui-btn layui-btn-normal layui-btn-mini">详情</a>
                            <a href="{:url('admin/systemparameter/editstatus',['id'=>$vo['ms_id'], 'status' => $vo['ms_status']])}" class="layui-btn layui-btn-danger layui-btn-mini ajax-confim">{php}echo $vo['ms_status']==2 ? '启用' : '禁用';{/php}</a>
                            <a href="{:url('admin/systemparameter/delete',['id'=>$vo['ms_id']])}" class="layui-btn layui-btn-danger layui-btn-mini ajax-delete">删除</a>
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
                <!--分页-->
                {$list->render()}
            </div>
        </div>
</div>
{/block}